'use strict';


/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/',app.jwt,controller.home.index);
  router.post('/login',controller.home.login)
  router.post('/register',controller.home.register)
  router.get('/info/:id',controller.home.info)
  router.get("/user/userList",app.jwt,controller.home.getUserList)
  router.get("/getInfo",controller.home.getInfo)
  router.post("/logout",controller.home.logout)
};
